
//
//  RedPacketViewController.m
//  Luxury
//
//  Created by DCQ on 2018/5/20.
//  Copyright © 2018年 ZNXZ. All rights reserved.
//

#import "RedPacketViewController.h"
#import "RedPacketListViewController.h"
@implementation RedPacketViewController
- (void)viewDidLoad{
    
    [super viewDidLoad];
    [self setNavigationItemTitle: @"红包"];
    [self setupIndicator];
}


- (void)setupIndicator{
    
    self.buttonBarView.shouldCellsFillAvailableWidth = YES;
    self.buttonBarView.backgroundColor = [UIColor whiteColor];
    self.isProgressiveIndicator = YES;
    self.isElasticIndicatorLimit = YES;
    //    self.buttonBarView.leftRightMargin = 10;
    //    self.buttonBarView.scrollsToTop = NO;
    //    self.buttonBarView.bounces = NO;
    // Do any additional setup after loading the view.
    
    self.buttonBarView.selectedBarAlignment = XLSelectedBarAlignmentCenter;
    self.buttonBarView.selectedBar.backgroundColor =  UIColorFromRGB(0xAD9B6A);
    self.buttonBarView.isAutoIndicatorWidth = NO;
    self.buttonBarView.indicatorWidth = 20;
    
    self.buttonBarView.backgroundColor = [UIColor whiteColor];
    self.bottomLineView.backgroundColor =  UIColorFromRGB(0xECEEEE);
    self.buttonBarView.bottomLineHeight = 1;
    
}
-(NSArray *)childViewControllersForPagerTabStripViewController:(XLPagerTabStripViewController *)pagerTabStripViewController{
    
    RedPacketListViewController * oneVC = [[RedPacketListViewController alloc]initWithStyle:TableViewControllerStyle_noUsed];
    RedPacketListViewController * twoVC = [[RedPacketListViewController alloc]initWithStyle:TableViewControllerStyle_used];
    RedPacketListViewController * threeVC = [[RedPacketListViewController alloc]initWithStyle:TableViewControllerStyle_overdue];
    NSArray * childViewControllers = [NSMutableArray arrayWithObjects:oneVC,twoVC,threeVC,nil];

    return childViewControllers;
}


- (UIColor *)getTabTitleColorSelected{
    
    return UIColorFromRGB(0xAD9B6A);
}
- (UIColor *)getTabTitleColorNor{
    return  UIColorFromRGB(0x999999);
}
@end
